Methods for generating search engine index enhanced with task-related metadata

ABSTRACT

Methods for using task-related information to enhance digital searching are provided. A task-oriented user activity system maintains task-related information about resources accessed by a user and current user task. This task-related information is used to include task-related metadata in search engine index, e.g., by storing the metadata in the index or by storing it in resources which are subsequently indexed. Task-related information can also be used to enhance search results by filtering and ranking results to increase relevance with respect to a user&#39;s current task and/or to enhance search queries to include task-related search criteria.

FIELD OF THE INVENTION

The present invention relates generally to enhancing digital search techniques for computer users. More specifically, it relates to computer-implemented methods for generating a search engine index with user task-related metadata.

BACKGROUND OF THE INVENTION

The amount of information within a person's reach—either stored locally on their computer devices (desktop computer, handheld, mobile phone, etc.) or available to them via networks that their personal hardware is connected to—continues to increase. Locating the right information at the right time continues to be a challenging and frustrating problem for computer users. While the development of search engines has significantly increased the ability of computer users to discover or locate information, existing search engine technology still has various significant limitations, and it is frequently insufficient to help people locate the information they need.

Existing search engine technology works well in a narrow set of situations, such as when the user is able to provide search terms that precisely match the resources they are attempting to locate. As the number of resources that can be accessed and searched by computer users increases, however, the probability of being able to uniquely identify a resource via keyword terms decreases. Although link popularity metrics are very effective when one is looking for a popular resource on the internet, they are less useful when popularity is not a desired metric, and they fail almost completely for personal resources stored on a desktop computer or private network, where the resources are not generally hyperlinked. Thus, current desktop search algorithms in particular are generally only successful when the personal computer being searched has limited amounts of information, or when the user is able to come up with specific keyword terms that return a small number of search results.

Technologies exist to provide search results focused on a user's immediate context. Some search engine technologies use techniques to improve search results provided to a user based on personal information or preferences stored in a user profile. For example, U.S. Pat. No. 6,327,590 discloses a technique for determining a context of a search query based on a comparison of keyword terms with a user context profile. The search results are ranked based on the determined context for the search. In another example, U.S. Pat. No. 7,225,187 discloses methods for performing automated background search queries based on the ongoing activities of users, e.g., current application use. However, these technologies are limited in the amount of value that can be provided to the user. The limitations arise from two sources. First, in most cases the contexts are implicitly discovered and defined and do not match the user's own perception of their context. In other words, there are many “correct” ways to organize activity into contexts, and implicitly discovered contexts never completely match each individual's organization of their own activity into contexts. Thus search results presented to the user that the system believes to match the user's current context will not actually match the user's own perception of their current context. Second, most systems represent search contexts as keyword profiles or probability distributions across keywords. Such approaches have limited expressiveness, leading to either search results that are less specific (and thus less useful) then the non-contextualized search results, or lack of search results because the search is over-constrained.

U.S. patent application publication 20070162907 entitled “Methods for Assisting Computer Users Performing Multiple Tasks,” which is incorporated herein by reference, describes techniques for assisting and improving the productivity of computer users and relates specifically to computer-implemented methods for assisting users who switch between multiple tasks in a computing environment (FIG. 1). The method includes collecting from multiple executing programs event records that represent state changes in the programs. The event records may be collected, for example, by monitoring state changes in the multiple programs, selecting a subset of the monitored state changes, and generating event records representing this selected subset. The state changes in the programs may result from user interaction, automated processes, network communications, or other interactions between the programs and the computing environment. User interaction, for example, may include various forms of input received from the user, either locally or remotely, such as input resulting from user interaction with various programs or from direct user feedback, e.g., correcting predicted associations between tasks and resources. The method also includes receiving from the user a specification of a task being performed by the user, e.g., when a user switches tasks and elects to explicitly specify the task. The user may also specify metadata associated with the task, e.g., information about relationships between tasks or an indication of completion of a task.

Also included in the method is predicting a current task being performed by the user, e.g., applying machine learning algorithms to predict a most probable current task from stored evidence such as past associations between events and tasks. The current task may be predicted based on evidence including: i) a most recent event record, ii) a most recent specification received from the user of a task being performed by the user, and iii) past event records and associated task identifiers stored in a database. Other evidence may also be included such as time since the user last specified a task, past indications of completed tasks, tasks or keywords associated with resources related to the latest event, and explicit associations by the user between tasks and resources. Based on the predicted current task, user interface elements in multiple executing programs are automatically adapted to facilitate performing the current task. For example, the adaptation may include displaying a resource list (such as folders or directories) that contains resources associated with the predicted current task or that contains a menu of recently used resources filtered to favor resources associated with the predicted current task. The adaptation may also include displaying the predicted current task, e.g., in a menu bar of a window.

SUMMARY OF THE INVENTION

The invention provides various methods of using task-related metadata in the search process so that the results of search are more relevant to the user's current information needs. These methods include augmenting the metadata indexes of existing metadata aware search engines to include task-related metadata and thereby providing task-aware search engines. Such task-aware searching may be performed in conjunction with various other task-enhanced search techniques including pre-processing the user's query to include task-related constraints prior to sending the query to existing or augmented search engines and post-processing search results returned by search engines using task-related information to increase the relevance of the results.

In one aspect of the invention, a method is provided that integrates a Task Oriented Activity System (TOAS) with the indexing component of a search engine. The TOAS maintains a database categorized by task of past activity of a user, where tasks are units of work that are meaningful to the user. An extension to the TOAS enables prediction of the most probable tasks that the user is working on at any given moment. Search engines have an indexing component that takes as input all the content of the resources to be searched and preprocesses that content to construct a representation of the content that can be searched efficiently given the search engine query language. For example, with a standard full-text search engine, a user supplies a list of keywords and the search engine uses an index data structure to quickly map from the list of keywords to a list of resources that contain those keywords. The indexing component is responsible for creating the index data structure from the content of the resources. In one embodiment, the indexing component includes a Task-Aware Processing subcomponent that can query the TOAS and can either augment the standard index data structure with task related information or create separate task-oriented indices. By making use of an index containing such task-related information, a standard search engine becomes a task-aware search engine in which the new indices allow the search query and ranking engines to quickly and efficiently identify items that are likely to be relevant to a single task or a collection of tasks.

In one embodiment, index files generated by a traditional indexing component are post-processed to add task-oriented information. The TOAS index post processor iterates through the existing index and adds task-related information to it. For example, it might tag each resource included in the index with the tasks that it is associated with.

In another embodiment, task-oriented metadata is added directly to resources prior to their being indexed, so that a traditional indexing component will automatically incorporate the task-oriented metadata into its indexes. For example, in a desktop search application, the task-oriented metadata may be added as metadata tags on files (e.g., NTFS metadata), and some desktop search applications can be configured to index this metadata.

The methods of the invention may be advantageously used in conjunction with various other task-related search enhancement techniques. For example, the method may be combined with a technique that allows the extension of search engine query languages to support task-oriented queries. In this method, components are added to the traditional search engine query processor to select subsets of search results based on task-oriented metadata, e.g., limit the results to documents likely to be associated with a specified task. In another example, the method may be combined with a technique for transforming user-supplied search queries before they are submitted to the search engine. The user's query is first submitted to a query expansion component that interacts with the TOAS. The query expansion component interacts with the TOAS to determine a set of additional keywords and modifiers to add to the user's query so that the results are more focused towards what the user is likely looking for at the moment that the query is submitted. The transformed query is then forwarded to the search engine.

In yet another example, the method may be combined with a technique for enhancing search results provided by a search engine based on information from the TOAS. This technique interacts with the TOAS to determine the most probable tasks that the user is working on at the moment a search query is issued. After the search results are received from the search engine, they are filtered and ranked according to the likelihood that they are associated with the user's most probable tasks.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a task-oriented user activity system which may be used as part of (or in coordinate with) various embodiments of the present invention.

FIG. 2 is a block diagram illustrating a system and method that uses task-related information to enhance search results provided by a search engine.

FIG. 3 is a block diagram illustrating a system and method in which a search engine indexer creates a search engine index including task-related information, and a search engine uses this index to provide task-related search results.

FIG. 4 is a block diagram illustrating a system and method in which an existing search engine index is enhanced to include task-related information.

FIG. 5 is a block diagram illustrating a system and method in which resources are enhanced with task-related information which is subsequently included in a search engine index.

FIG. 6 is a block diagram illustrating a system and method in which a search engine accepts and executes queries including task-related search criteria.

FIG. 7 is a block diagram illustrating a system and method in which a search engine automatically expands a search query using task-related information and forwards an enhanced search query to a search engine.

FIG. 8 is a block diagram illustrating a system and method in which a search engine automatically expands a task-related search query using task-related information and forwards an enhanced search query to a search engine.

DETAILED DESCRIPTION

Although the present invention may be implemented on various computer devices running any of several operating systems and application programs, the following description may make reference to specific software applications, operating systems, and tasks for the purposes of illustration. Those skilled in the art will recognize that the present invention is not limited to these particularities.

Definitions

The following definitions will be used in the context of the present description:

Resources. Resources include logically grouped collections of stored information. Common examples of resources include documents, files, folders, web pages, email messages and saved search queries. Resources also include named entities or processes that the user can send information to or receive information from via the computer interface. Examples include people (contacts) and mailing lists. Resources may also be applications or database servers. Examples may include calendaring software applications, workflow applications, and financial tracking applications where knowledge of sub-collections of information within those applications is not made available to the invention (e.g., the instrumentation of the financial application may only be able to generate events when the application is accessed).

Search Engine. A search engine is an information retrieval system designed to help find resources stored on one or more computer systems, such as on the World Wide Web, inside a corporate or proprietary network, or on a personal computer. The search engine accepts queries for content meeting specific criteria (typically those containing a given word or phrase) and retrieves a list of items that match those criteria. This list is often sorted with respect to some measure of estimated relevance of the results. Search engines typically use regularly updated indexes to operate quickly and efficiently.

Indexer. An indexer is a software component that pre-processes resources and generates an index which may be used by a search engine for efficient search at a later time.

File Metadata. File metadata is data associated with a file which contains descriptive information to categorize the file or otherwise distinguish it from other files.

Search Query. A text string that specifies attributes of desired resources and which may be processed by a search engine.

Search Results. A list of resource references generated by a search engine in response to a search query.

Task-Oriented User Activity System

Preferred embodiments of the present invention operate in cooperation with a task-oriented user activity system. Details of a task-oriented user activity system are illustrated in FIG. 1, and are described in greater detail in US patent application publication 20070162907. The user interacts with a computer interface to generate user input 101 received by software application programs 102 which forward event records such as event record 103 to an event collector 104. An adaptor component 111 may assist in the generation and forwarding of the event records. The event collector 104 communicates event records to the task predictor 106, which then applies machine learning algorithms to predict the current task that each event is associated with. Each event record may then be associated with a task. In addition, a current task being performed may be predicted. At any point in time, the user can specify what task they are working on through a computer interface to generate a user task specification 105. They may also specify metadata about that task. This specification becomes evidence for the task predictor 106, which associates event records with tasks to produce labeled events. The labeled events are then sent to the event publisher 107 which publishes them to various components, including the event recorder 108, the task indexer 113, and one or more adaptation components 109. The event recorder 108 writes the labeled event records to an event history database 115, which is then accessible by components such as the adaptation components 109. The task indexer 113 updates the task database 114 with the labeled event records. The task database maintains the current beliefs of the system regarding what resources are associated with which tasks, and possibly which events are associated with which tasks. It may also maintain statistics about each task, such as the last time that a task was accessed or the number of times that a task has been accessed in the recent past. Adaptation components 109 receive task-labeled event records from the event publisher 107 and, in response to the events, adapt one or more software program user interfaces 110 in a manner that is appropriate for the task associated with the most recent event or events. User interfaces 110 will typically correspond to programs 102 that the user is interacting with. The adaptation components can also access the historical data 120 including past events from the event database 115 and the current set of beliefs about what events and resources are associated with which tasks, stored in the task database 114.

The user can also view the mappings of events and resources to tasks, and can provide feedback 112 on those mappings, indicating that one or more events or resources do not belong in a task, moving one or more events or resources from one task to another, or indicating that one or more resources should be added to a task. This feedback is communicated to the event collector 104. Those event records propagate like all other event records to the task indexer 113 and the event recorder 114. The task indexer corrects its task database 114 in response to the user feedback.

Post-Processing Search Results

FIG. 2 is a block diagram of a system for implementing a method of post-processing results from a search engine using task-related information to produce enhanced search results. A user 201 interacts with a search engine 202 by submitting a search query 210 specifying attributes of a set of resources, usually by supplying a keyword query. The interaction between the user and the search engine is not constrained to any particular interface or mechanism, but typically takes the form of the user interacting with a web browser, which then submits the query to the search engine via the internet. In the case of desktop search, the interaction may take the form of the user interacting with a desktop search application. Note that a Task-Oriented User Activity System (TOAS) 204 running on the user computer obtains event records resulting from the user interaction with the web browser and then predicts a current task of the user. This prediction will be based in part on the search query terms contained in the event record of the search submission as well as other evidence such as the metadata and content of documents recently visited. In response to the search query 210, the search engine 202 generates initial search results 211 which generally include a list of references to resources that match the search query. Before the initial search results are displayed to the user, they are sent to and processed by the Task Related Filtering and Ranking component 203. The Task Related Filtering and Ranking component queries a Task Predictor Query Module 222, which is an extension of the Task Predictor 221 subcomponent of the Task Oriented Activity System (TOAS) 204. In response to the task query, module 222 returns task-related information 212 which includes a list of the most likely tasks and the associated probability that the user is currently in the context of each of those tasks. The number of tasks returned can be customized, but is preferably between 1 and 5, inclusive. After receiving a list of the most probable tasks, the Task Related Filtering and Ranking component 203 then queries a Task-Related Information Query Module 220, which returns additional task-related information 212 that includes, for each specified task what kinds of content the user might be interested in if they are working in the context of that task. This information includes, but is not limited to:

-   -   What resources are associated with each of the specified tasks         (resources generally become associated with a task when the user         uses a resource in the context of a task, but resources can also         be manually associated with a task by the user);     -   How recently those resources have been used while working on         those tasks;     -   How frequently those resources have been used while working on         those tasks;     -   Whether resource(s) were the targets/sources of dataflows         from/to a resource related to the specified task;     -   Whether a resource was accessed within a window of time relative         to the specified task.

The Task-Related Information Query Module 220 retrieves or computes this information from two databases—the Event Database 205 and the Task Database 206.

The Task-Related Information Query Module 220 can also produce when requested:

-   -   Activity history across projects—records of all activity between         a user and resources.

In some embodiments, the Task Related Filtering and Ranking component 203 also queries module 220 to get a recent activity history independent of tasks.

The Task Related Filtering and Ranking component 203 builds a statistical representation of the user's information need at the time of the query. This representation of the user's information need will be more precise than just the query keywords issued to the search engine.

In one embodiment, the Task Related Filtering and Ranking Component 203 filters out from the initial search results references to resources that are not likely to be associated with the user's current task to produce enhanced search results 213. These enhanced search results are then passed to the display component 207 which presents the task-aware search result references 214 to the user 201. The display component 207 may be a web page (similar to traditional web search results), or it may be a list within a desktop application.

In another embodiment, references to resources not likely to be associated with the current task are filtered out, and then the remaining search result references are ranked so that resources that have the highest relevance to the current task are adjusted upward in the rankings. In another embodiment, references to resources not likely to be associated with the current task are moved to the bottom of the search results list, and may be identified by highlighting or other visual indications of reduced relevance.

In order to rank and filter the search results 211, each reference included in the search results 211 is processed by the filtering and ranking component 203 to determine its relationship to the user's likely current task(s). In a preferred embodiment, one way to determine this relationship is for the Task Related Filtering and Ranking component 203 to construct and maintain a list of keywords describing each of the user's tasks. Then similarity metrics such as Term Frequency Inverse Document Frequency (TFIDF) can be applied to assess the similarity between the words associated with the search result and the words associated with the user's current task, producing a likelihood that the result is associated with the task. The words associated with a search result may be derived, for example, by extracting keywords from the resource referenced by the search result and/or from metadata associated with the resource. The words associated with the task may be derived, for example, by combining term frequency vectors extracted from all of the resources associated with the task. This extraction can exploit the fact that the TOAS already learns and maintains a classifier that attempts to predict which tasks are associated with each resource accessed by the user. This classifier can incorporate evidence such as the resource title, resource contents, resource keywords, resource metadata (e.g., resource size, date modified, language, domain name, URL, pathname, enclosing folder, author, revision history), and resource access history (e.g., when the user has previously accessed the resource while working on the current task or on other tasks, total time spent by the user accessing the resource while working on this task and on other tasks, etc.). Hence, in the preferred embodiment, this classifier computes, for each resource, words associated with the task.

At any given point in time, the TOAS 204 may be uncertain about which task the user is currently working on. Persons skilled in the art will note that the TOAS can represent this uncertainty in various ways, e.g., such as a probability distribution P(task) over the set of tasks or as a ranked list. The methods described in the previous paragraph can be extended to deal with this uncertainty by computing a weighted combination of the predicted strength of association between each query result and each of the tasks, producing a likelihood that the result is associated with the user's most probable tasks.

TOAS-Aware Indexer

FIG. 3 is a block diagram of a system for implementing a method of generating a search index that includes task-related information and delivering task-related search results using the index. In this system, a search engine indexer 301 includes a Task-Aware Index Processing Component 302 which allows it to incorporate task-related information. For each of the resources 310 processed by the indexer 301, the component 302 queries TOAS 303 extended with the Task-Related Information Query Module 320 and Task Predictor Query Module 322 to determine which tasks (if any) the resource is likely to be associated with. The resources known to the TOAS are previously tagged with tasks by the TOAS based on the contents of the Events Database 305 and the Task Database 306. If the resource is unknown to the TOAS, then the Task Related Filtering and Ranking component 324 can attempt to associate the resource with known tasks using association techniques described above in relation to FIG. 2. The list of tasks associated with a resource is then stored by indexer 301 as part of the task-enhanced resource metadata 311 within the Search Engine Index Database 304. This allows a metadata-aware search engine 308 to support search queries 312 from the user 307 that contain task-related metadata search criteria.

A metadata-aware search engine is a search engine that is able to parse and process search queries containing metadata criteria, and return search results that take into account such criteria. These criteria may include metadata properties that do not have to be defined at the time that the software component is released. Task-related metadata is one example of a metadata property. In this case, the task associations are stored in the search engine index 304 as a particular type of metadata 311 associated with the resources. The Task Aware Index Processing Component 302 may also, or alternatively, create a separate index data structure that allows rapid identification of those resources that have a certain task or set of tasks associated with them. One skilled in the art would be aware of data structures appropriate for rapidly locating a set of resources given a set of tasks they are associated with. One example of such a data structure would be a hash-table, with the keys being the task identifiers and the values being the list of resources with associated with the identified task.

An alternative to the Metadata-aware Search Engine is a Task-Aware Search Engine component 309. This is a search engine that receives a search query 313 from a user and queries TOAS 303 extended with the Task-Related Information Query Module 320 and the Task Predictor Query Module 322 to determine the most likely tasks that the user is currently working on 314. The Task-Aware Search Engine 309 retrieves a set of search results using index 304 and generates a set of search results that are most likely to be relevant to the user's most likely current task, using an algorithm for ranking such as described previously in relation to FIG. 2.

Index Post-Processor

FIG. 4 is a block diagram of a system for implementing a method of enhancing a search index generated by a traditional search engine indexer to include task-related metadata information, and delivering task-related search results using the enhanced search index. The traditional metadata-aware search engine indexer 401 is a search engine indexer component that creates a search index database 402 of resources 410. The search engine indexer 401 is metadata-aware because it creates index data structures that can include metadata about resources 410. Furthermore, the metadata-aware indexer 401 may also be able to create index data structures that are optimized to allow for fast searching for resources that have a given metadata value or one of a set of metadata values. The Task-Aware Index Post-Processor 403 reads index 402 created by the indexer 401 and post-processes it. In particular, for every resource referenced in the index 402, the Task-Aware Index Postprocessor 403 queries the Task Oriented Activity System (TOAS) 404 extended with the Task Predictor Query Module 422 to determine the set of tasks (if any) that are likely to be associated with that resource. If the resource is unknown to the TOAS, then the Task Related Filtering and Ranking component 424 can attempt to associate the resource with known tasks using association techniques described above in relation to FIG. 2. The indices are then modified to include metadata that specifies the relationship between the resource and the associated tasks. Once the index 402 has been post-processed, the Metadata-aware Search Engine 407 can accept from the User 408 search queries 411 that contain metadata search criteria and use the Index 402 to produce search results 412 containing a set of matching resource references. Search Engine 407 may also rank the references and sort the list of results 412 by rank. The results 412 are sent to a Search Results Display Component 409, which renders them as displayed results 413 onto a display that the user 408 can access.

Over time, as more user interaction events are observed, the TOAS may change its beliefs about which resources are associated with which tasks. As a result, the Task-Aware Index Post-Processor 403 needs to periodically run in order to update the index 402. In a preferred embodiment, there is a configuration file that is used to configure when the Task-Aware Index Post-Processor runs. In one embodiment, The Task-Aware Index Post-Processor can be configured to run on a periodic schedule (every night at 2 AM, every 2 hours, etc.), when there are resources whose metadata needs to be updated (i.e., when the TOAS's belief about project-resource association changes), or when the computer is idle, or some combination.

Direct Resource Metadata Annotation

FIG. 5 is a block diagram of a system for implementing a method in which task-related metadata is added to resources so that a conventional search indexer can automatically include the task-related metadata into a search index, and a search engine using the index can provide task-related search results. The Task-Aware Metadata Annotation Component 501 directly accesses resources 510 on a storage medium (disk drive, network drive, memory card, etc). The Annotation component 501 extracts information from the resource and passes it to the Task Oriented Activity System (TOAS) 502 extended with the Task Predictor Query Module 522 so that the TOAS can determine which tasks (if any) are associated with that resource. If the resource is unknown to the TOAS, then the Task Related Filtering and Ranking component 524 can attempt to associate the resource with known tasks using association techniques described above in relation to FIG. 2. Information extracted from the resource may include the content of the resource as well as any task-related metadata that is associated with the resource. The information collected from a resource may be different for different types of resources. For example, if the resource is an email message, the information that is collected may include: the title, the sender email address, the recipient email addresses (to, cc, and bcc), the subject, any email thread identifier tag, and the first 1000 bytes from the email message body. This information is passed to the TOAS extended with the Task Predictor Query Module 522, which in return passes back the associated task(s). The Annotation Component 501 then directly annotates the resource by modifying the resources 510 stored on the storage medium. The annotation is preferably performed in the way supported and recognized by the underlying storage mechanism and the Search Engine Indexer 504. For example, in one embodiment, the list of associated tasks is stored as a custom Microsoft Windows NTFS file system metadata attribute. The Metadata-aware Search Engine Indexer 504 reads these task metadata tags when it indexes the resources 510. The Indexer 504 then includes those metadata tags into its index 503, and may also create a new index—a data structure that will optimize the speed of requesting a set of resources that are associated with a set of tasks. The Metadata-aware Search Engine 505 accepts search queries 511 from the User 506, and uses the index 503 to produce search results 512 containing a set of matching resource references. The Search Engine 505 may also rank the results 512. The results 512 are sent to a Search Results Display Component 507, which renders them as displayed results 513 onto a display that the user 506 can access.

Query Language Extensions

FIG. 6 is a block diagram of a system for implementing a method of delivering task-related search results in response to user search queries that include task-related search criteria. A traditional search query language supports specification of keywords and metadata criteria. The user 603 employs the query language to formulate a search query 608 specifying criteria that desired resources should satisfy. If keywords are specified, then the resources referenced in the search results preferably or should contain those keywords. Metadata criteria are used to specify that the metadata of the resources referenced in the search results should match the specified metadata criteria. Examples of metadata that are commonly supported by current search engine technology include modification date, language, has-a-hyperlink-to, Is-liked-from, and is-part-of-domain. According to one embodiment of the invention, an enhanced search engine 601 supports task-oriented query language extensions using a Task-Oriented Query Parser 602. A search query submitted by the user 603 is examined by Parser 602 to identify search query terms that use task-oriented query language extensions. These extensions to the query language allow the user to specify additional desired characteristics of the search results. The task-oriented extensions to the query language allow the Parser 602 to process resource criteria including (but not limited to):

-   -   Task. The task(s) with which a resource is associated or likely         to be associated     -   Time of access. When a resource was created, last accessed, or         last modified by the user while on the current task or on a         specific task     -   Frequency of use. How frequently the user has used a resource         while on the current task or on a specific task     -   Dataflow: Other resource(s) that were the targets/sources of         dataflows from/to a resource     -   Pattern of access. Whether a resource was accessed within a         window of time relative to an access time of another resource.

Each of these extensions has an corresponding query syntax, such as “task:<taskname>” for specifying the task that search results should be associated with. More generally, each search query criteria syntax preferably has a unique prefix followed by a colon (such as “task:”, “access-time:”, “access-count:”, “dataflow-to:” followed by the parameters from the user). The Task-oriented Query Parser may use a simple prefix lookup table to determine which task-specific query criterion is being invoked. Once specific criteria have been determined, the list of task-oriented query criteria are passed to the Task-Oriented Subset Fetcher 604, which consults the search engine index 605 to return a set of search results referencing resources that match the task-oriented criteria specified in the search query. A Task-Oriented Merge Ranker 607 then merges (by unions, intersections, or more complex Boolean operations) the sets that match the task-oriented search query criteria with the set of results produced by the traditional search engine component to produce a set of enhanced search results 610. The Search Results Display component 606 then presents the displayed search results 611 to the user 603.

Query Language Pre-Processing—Focusing Results on Probable Current Tasks

In some cases, it may not be practical to add a new component within an existing search engine or to influence the indexing, such as when the search engine and its indexing methods are proprietary and nonpublic. One aspect of the invention provides a method for automatically transforming and/or expanding user-supplied search queries using task-related information and submitting the enhanced search query to a conventional search engine.

In one embodiment shown in FIG. 7, a Task Oriented Activity System (TOAS) 701 is extended with a Task Predictor Query Module 722. A function of the Task Predictor Query Module 722 is to take as inputs lists of tasks, and return as output task-related information 711, which includes a list of features that are likely to be predictive of the input tasks. Features generally include but are not limited to words (e.g., “information”, “extraction”) and metadata restrictions (e.g., “title must contain the word ‘information retrieval’”). The Task Predictor Query Module 722 is an extension of one of the subcomponents of the TOAS 701 called the Task Predictor 721, which uses machine learning to learn statistical models mapping evidence to tasks. The Task Predictor Query Module 722 examines the models learned by the Task Predictor 721, and for each input task outputs the features that are most likely to be predictive of that task.

A search query 710 generated by the user 702 is processed by a Query Expansion Component 703 which queries the Task Predictor Query Module 722 of a TOAS 701 to obtain task-related information 711 for the most likely tasks.

The Query Expansion Component 703 uses a lookup table stored in a database 705 to map features to search engine query terms and filter out features that are not supported by the Search Engine 707. The lookup table allows the Query Expansion Component 703 to support multiple search engines that have varying search query language formats (e.g., Yahoo!, Google, etc.). In most cases, simple key words will not need to be transformed, but metadata criteria are often implemented with different syntax by different search engines. Query expansion component 703 produces and sends an enhanced search query 708 including features that have not bee filtered out to a conventional search engine 707, which produces search results 709. A Search Results Display component 706 receives the results 709 and presents displayed search results 712 to the user 702.

Query Language Preprocessing with Query Language Extensions

FIG. 8 is a block diagram of a system for implementing a method of processing task-related search criteria and delivering task-related search results. According to this method, a search query 810 composed in an enhanced search query language is translated into a traditional search engine language, typically by supplementing the search query with additional query terms. The Task-Oriented Query Processor 801 receives a search query from interaction with user 802 and performs similar actions as the Task Oriented Query Language Extension 602, but in a more limited way. Specifically, Processor 801 only recognizes one kind of additional metadata—specification of tasks. This allows the user 802 to specify an extended search term that indicates a task-related search criterion. The Query Expansion Component 803 performs similar actions as the Query Expansion Component 703 with one exception: if the user specifies one our more tasks as part of the extended search query 810, then the query expansion component 803 issues a query to the TOAS 804 extended with the Task Predictor Query Module 822 specifying those tasks, and the TOAS returns features 805 likely to be predictive of those specified tasks rather than the user's current task. In another embodiment, the Query Expansion Component 803 can request from the TOAS 804 extended with the Task Predictor Query Module 822 features likely to be predictive of both the specified task and the user's current task. Otherwise, the operation is similar to the embodiment discussed above in relation to FIG. 7. Expansion Component 803 uses lookup table 806 to map features 805 to search terms and produce an enhanced search query 807 which is submitted to search engine 808. Search results 809 are then received by display component 811 and presented to user 802 as displayed search results 812. 

The invention claimed is:
 1. A computer-implemented method for generating a task-enhanced search engine index, the method comprising: determining associations between user tasks and resources accessed by a user while performing various tasks, wherein determining the associations includes determining associations for a particular task in connection with a plurality of resources identified for use in the context of the particular task, and wherein the associations determined for the particular task are determined according to task-related information provided based on use of the plurality of resources in the context of the particular task; filtering the plurality of resources, as filtered resources, for the particular task according to the associations determined for the particular task; storing, as stored associations, the associations determined for the particular task with respect to the filtered resources for each of the user tasks; computing from the stored associations task-related metadata for each of the resources; storing the computed task-related metadata in a search engine index; predicting a predicted task using the computer task-related metadata stored in the search engine index, wherein the predicted task is different from the particular task, and wherein predicting the predicted task includes determining that performing the particular task indicates a probability of subsequently performing the predicted task according to the computer-task related metadata; and generating search results in response to a search query by the user, the search results being generated according to the predicted task and the search engine index.
 2. The method of claim 1 wherein determining associations between user tasks and resources accessed by a user while performing various tasks comprises tagging resources with tasks based on the contents of an events database and a task database.
 3. The method of claim 1 wherein determining associations between user tasks and resources accessed by a user includes using a task-oriented user activity system.
 4. The method of claim 1 wherein the task-related metadata comprises a list of tasks associated with each of the resources.
 5. The method of claim 1 wherein storing the computed task-related metadata comprises modifying existing metadata in the search engine index to include the computed task-related metadata.
 6. The method of claim 1 further comprising annotating the resources with the computed task-related metadata, and wherein computing the task-related metadata comprises indexing the annotated resources with a metadata-aware search engine indexer.
 7. The method of claim 6 wherein annotating the resources with the computed task-related metadata comprises modifying file system metadata attributes of the resources.
 8. The method of claim 1 further comprising creating an index data structure that allows rapid identification of resources associated with a given set of tasks.
 9. The method of claim 1 wherein computing the task-related metadata and storing the computed task-related metadata in the search engine index are repeated periodically in order to update the search engine index.
 10. The method of claim 3 wherein computing task-related metadata comprises querying the task-oriented user activity system for the task-related information associated with each of the resources, and receiving the task-related information from the task-oriented user activity system.
 11. A system that generates a task-enhanced search engine index, comprising: means for determining associations between user tasks and resources accessed by a user while performing various tasks, wherein determining the associations includes determining associations for a particular task in connection with a plurality of resources identified of use in the context of the particular task, and wherein the associations determined for the particular task are determined according to task-related information provided based on use of the plurality of resources in the context of the particular task; means for filtering the plurality of resources, as filtered resources, according to the associations determined for the particular task; means for storing, as stored associations, the associations determined for the particular task with respect to the filtered resources for each of the user tasks; means for computing from the stored associations task-related metadata for each of the resources; means for storing the computed task-related metadata in a search engine index; means for predicting a predicted task using the computer task-related metadata stored in the search engine index, wherein the predicted task is different from the particular task, and wherein predicting the predicted task includes determining that performing the particular task indicates a probability of subsequently performing the predicted task according to the computer-task related metadata; and means for generating search results in response to a search query by the user, the search results being generated according to the predicted task and the search engine index.
 12. The system of claim 11 wherein means for determining associations between user tasks and resources accessed by a user while performing various tasks includes means for tagging resources with tasks based on the contents of an events database and a task database.
 13. The system of claim 11 wherein the task-related metadata includes a list of tasks associated with each of the resources.
 14. The system of claim 11 wherein means for storing the computed task-related metadata includes means for modifying existing metadata in the search engine index to include the computed task-related metadata.
 15. The system of claim 11 further comprising: means for annotating the resources with the computed task-related metadata, wherein means for computing the task-related metadata includes means for indexing the annotated resources with a metadata-aware search engine indexer.
 16. The system of claim 15 wherein means for annotating the resources with the computed task-related metadata includes means for modifying file system metadata attributes of the resources.
 17. The system of claim 11 further comprising: means for creating an index data structure that allows rapid identification of resources associated with a given set of tasks.
 18. The system of claim 11 wherein means for storing associations between user tasks and resources accessed by a user includes a task-oriented user activity system.
 19. The system of claim 18 wherein means for computing task-related metadata includes means for querying the task-oriented user activity system for the task-related information associated with each of the resources, and means for receiving the task-related information from the task-oriented user activity system.
 20. A system that generates a task-enhanced search engine index, comprising: an event collector that determines associations between user tasks and resources accessed by a user while performing various tasks, wherein determining the associations includes determining associations for a particular task in connection with a plurality of resources identified for use in the context of the particular task, and wherein the associations determined for the particular task are determined according to task-related information provided based on use of the plurality of resources in the context of the particular task; a filter that filters the plurality of resources, as filtered resources, according to the associations determined for the particular task; a first database that stores, as stored associations, the associations determined for the particular task with respect to the filtered resources for each of the user tasks; a task predictor that uses the stored associations to compute task-related metadata for each of the resources; a second database that stores the computed task-related metadata in a search engine index, wherein the task predictor predicts a predicted task using the computer task-related metadata stored in the search engine index, wherein the predicted task is different from the particular task, and wherein predicting the predicted task includes determining that performing the particular task indicates a probability of subsequently performing the predicted task according to the computer-task related metadata; and a search result generator component that generates search results in response to a search query by the user, the search results being generated according to the predicted task and the search engine index. 